<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>css3动画特效2</title>
  <style>
    body{
        background-color: black;
    }
    img{
        width: 200px; height: 200px; margin: 400px auto;
        border-radius: 10px; display: block;
    }
    @keyframes bounceInLeft {
        0% {
            opacity: 0;
            -webkit-transform: translateX(-2000px);
            -ms-transform: translateX(-2000px);
            transform: translateX(-2000px)
        }

        60% {
            opacity: 1;
            -webkit-transform: translateX(30px);
            -ms-transform: translateX(30px);
            transform: translateX(30px)
        }

        80% {
            -webkit-transform: translateX(-10px);
            -ms-transform: translateX(-10px);
            transform: translateX(-10px)
        }

        100% {
            -webkit-transform: translateX(0);
            -ms-transform: translateX(0);
            transform: translateX(0)
        }
    }

    .effectBounceInLeft {
        animation: bounceInLeft 1s infinite;
        -webkit-animation: bounceInLeft 1s infinite
    }
  </style>
</head>
<body>
    <img class="effectBounceInLeft" src="./images/tx.jpg" />
</body>
</html>